import useAxiosApi from '/@/utils/useAxiosApi';
import axios from "axios";

/**
 * 获取信息
 * @returns UseAxiosReturn
 */
export function getTestInfo(userId) {
    return useAxiosApi('/hbmy_wx/sport.freeTestQuery', {
        method: 'POST',
        data: { stuid: userId },
    });
}

/**
 * 提交申请
 * @returns UseAxiosReturn
 */
export function pushFreeTest(userId,reason) {
    return useAxiosApi('/hbmy_wx/sport.freeTestUpdate', {
        method: 'POST',
        data: { stuid: userId,state: 2,reason },
    });
}

/**
 * 退会申请
 * @returns UseAxiosReturn
 */
export function rebackFreeTest(reid) {
    return useAxiosApi('/hbmy_wx/sport.rolebackReserve', {
        method: 'POST',
        data: { reid},
    });
}

/**
 * 查询成绩
 * @returns UseAxiosReturn
 */
export function getScore() {
    return useAxiosApi('/hbmy_wx/sport.queryScore', {
        method: 'POST',
        data: {},
    });
}

